/// 当前页结果集
class WriteoffTeamQuoteDetailPageForPlatformResponseDto {
  /// 报价id
  final int? quoteId;
  /// 报价创建时间
  final String? createTime;
  /// 报价更新时间
  final String? updateTime;
  /// 报价，单位美元
  final String? price;
  /// 最小额度
  final int? minimum;
  /// 预计核销处理时长，单位：分钟
  final int? takeTime;
  /// 卡种类ID
  final int? cardTypeId;
  /// 卡种类
  final String? cardType;
  /// 卡分类ID
  final int? cardCategoryId;
  /// 卡分类
  final String? cardCategory;
  /// 状态：0-禁用 1-启用
  final int? status;
  /// 报价团队ID
  final int? agencyTeamId;
  /// 报价团队名称
  final String? teamName;

  WriteoffTeamQuoteDetailPageForPlatformResponseDto({
    this.quoteId,
    this.createTime,
    this.updateTime,
    this.price,
    this.minimum,
    this.takeTime,
    this.cardTypeId,
    this.cardType,
    this.cardCategoryId,
    this.cardCategory,
    this.status,
    this.agencyTeamId,
    this.teamName,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (quoteId != null) data['quoteId'] = quoteId;
    if (createTime != null) data['createTime'] = createTime;
    if (updateTime != null) data['updateTime'] = updateTime;
    if (price != null) data['price'] = price;
    if (minimum != null) data['minimum'] = minimum;
    if (takeTime != null) data['takeTime'] = takeTime;
    if (cardTypeId != null) data['cardTypeId'] = cardTypeId;
    if (cardType != null) data['cardType'] = cardType;
    if (cardCategoryId != null) data['cardCategoryId'] = cardCategoryId;
    if (cardCategory != null) data['cardCategory'] = cardCategory;
    if (status != null) data['status'] = status;
    if (agencyTeamId != null) data['agencyTeamId'] = agencyTeamId;
    if (teamName != null) data['teamName'] = teamName;
    return data;
  }

  factory WriteoffTeamQuoteDetailPageForPlatformResponseDto.fromJson(Map<String, dynamic> json) {
    return WriteoffTeamQuoteDetailPageForPlatformResponseDto(
      quoteId: json['quoteId'],
      createTime: json['createTime'],
      updateTime: json['updateTime'],
      price: json['price'],
      minimum: json['minimum'],
      takeTime: json['takeTime'],
      cardTypeId: json['cardTypeId'],
      cardType: json['cardType'],
      cardCategoryId: json['cardCategoryId'],
      cardCategory: json['cardCategory'],
      status: json['status'],
      agencyTeamId: json['agencyTeamId'],
      teamName: json['teamName'],
    );
  }
}